package com.iot.mqtt;

import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * Mqtt连接配置参数
 */
@EnableConfigurationProperties
@ConfigurationProperties("mqtt")
@Configuration
public class MqttConfig {
    @Getter
    @Setter
    private String host;
    @Getter
    @Setter
    private String port;
    @Getter
    @Setter
    private String username;
    @Getter
    @Setter
    private String password;
    @Getter
    @Setter
    private String[] topics;
    @Getter
    @Setter
    private int[] qos;
    @Getter
    @Setter
    private boolean autoConnect = true;
}
